/**
 * Created by Administrator on 2017/2/12.
 */
import { Component,OnInit } from '@angular/core';
import { Router, ActivatedRoute, Params } from '@angular/router';
import { DonathreeService }  from './dona.serve'


@Component({
  moduleId: module.id,
  selector: 'my-donathree',
  templateUrl: 'donathree.html',
  providers:[ DonathreeService ],
})
export class DonathreeComponent implements OnInit {
  constructor(
    private donathreeService:DonathreeService,
    private router: Router,
  ){}
    private getinfron='';
    private sat='';
     ngOnInit(){
        this.donathreeService.cardinfro('03')
          .subscribe(
            res=>{this.getinfron=res;
                this.sat=res['status']
            }
          )
     }
     gosucc(){
        let next=this.sat;
        if(next=='00'){
          this.router.navigate(['/linkDonafour'])
        }
     }
}
